<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改订单</title>
    <!-- 引入JQuery -->
    <script src="js/jquery-3.4.1.min.js" th:src="@{/js/jquery-3.4.1.min.js}"></script>
    <!-- 引入BootStrap-->
    <link href="css/bootstrap/css/bootstrap.min.css" th:href="@{/css/bootstrap/css/bootstrap.min.css}" rel="stylesheet"/>
    <script src="css/bootstrap/js/bootstrap.min.js" th:src="@{/css/bootstrap/js/bootstrap.min.js}"></script>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <!--侧边栏-->
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <div class="header-main">
                <div id="head" th:include="head.html :: common_head"></div>
            </div>
            <br>
            <br>
            <h2>修改订单信息</h2>
            <!--修改订单的表单-->
            <label>要修改的订单ID</label><div th:text="${updateorder.order_id}"></div>
            <form th:action="@{/updateOrder}" method="post">
                <!--隐藏域，保存要修改员工的id-->
                <div class="form-group">
                    <label>订单名称</label>
                    <input type="hidden" name="order_id" th:value="${updateorder.order_id}">
                    <input type="text"  name="order_name" class="form-control" placeholder="订单名"
                           th:value="${updateorder.order_name}">
                </div>
                <div class="form-group">
                    <label>订单日期</label>
                    <input type="date" name="order_date" class="form-control" placeholder="订单日期"
                           th:value="${updateorder.order_date}">
                </div>
                <div class="form-group">
                    <label>订单用户</label>
                    <select class="form-control" name="order_userid">
                        <option th:each="user:${ordersuser}"
                                th:text="${user.user_name}" th:value="${user.user_id}"></option>
                    </select>
                </div>
                <button type="submit" class="btn btn-primary">修改</button>
            </form>
        </main>
    </div>
</div>

</body>
</html>